__author__ = 'mars'

import os
dir='D:\\navicat10'
for root, dirs, files in os.walk(dir):
    for name in files:
        if 'xls' in name:
            str1 =  os.path.join(root, name)
            a1=2
            str1 = str1 + ' ' +   os.path.join(root, 'its_stop_gps.ini')
            #print root
            str2 = root.split('\\')[2].lower()
            #print name
            #print str1
            str2 = 'c:\python27\python C:\Users\mars\project\pyrepo1\corp_sr\line_gen_new.py ' + str1 + ' ' + str2
            print str2

